package com.yjps.house.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="t_shop")
public class Shop extends BaseModel{

    //用户id（门店经理）
    @Column(name = "user_id",length =11 ,nullable = false)
    private int userId;

    //门店名
    @Column(name = "shop_name",length =50 ,nullable = false)
    private String Name;

    //门店logo图片url
    @Column(name = "shop_logo",length =50 )
    private String logo;

    //门店描述
    @Column(name = "shop_description",length =100 )
    private String description;

    //门店状态
    @Column(name = "shop_state",length =1,nullable = false)
    private int state;

    //门店成立时间
    @Column(name = "shop_creat_time",length =20,nullable = false)
    private String createTime;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
